package com.mxchip.livestar.rest.log;

import android.text.TextUtils;

public class BaseEntity<T> {
    String result = null;
    String code = null;
    String message = null;
    T data;

    public Boolean isOK() {
        return TextUtils.equals(code, "0000");
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
